﻿@{Htss.Platform.Web.HtmlHelper Html = new Htss.Platform.Web.HtmlHelper();}
<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <title>修改资料-@DreamBox.DAL.SiteConfig.Config.SiteName-@DreamBox.DAL.SiteConfig.Config.Title</title>
    <meta name="description" content="@DreamBox.DAL.SiteConfig.Config.Description" />
    <meta name="keywords" content="@DreamBox.DAL.SiteConfig.Config.KeyWords" />
    <script src="/tools/js/jquery-2.1.1.min.js" type="text/javascript"></script>
    <link href="/style/metro/css/metro-bootstrap.css" rel="stylesheet" />
    <script src="/style/metro/css/metro.min.js"></script>
</head>
<body class="metro">
    <div class="container">
        @Html.Action("", "header")
        <div class="grid">
            <div class="row offset3">
                <div class="span3">
                    <nav class="sidebar light">
                        <ul class="">
                            <li class="nav-header">
                                操作选项
                            </li>
                            <li>
                                <a href="/user/info">个人信息</a>
                            </li>
                            <li class="active">
                                <a href="/user/data">编辑资料</a>
                            </li>
                            <li>
                                <a href="/user/avatar">编辑头像</a>
                            </li>
                            <li>
                                <a href="/user/password">更改密码</a>
                            </li>
                        </ul>
                    </nav>
                </div>
                <div class="span9">
                    <form action="@(Html.Request.RawUrl)" method="post" class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label">用户名:<em style="color:Red;">*</em></label>
                            <div class="input-control text size4">
                                <input name="UserName" type="text" id="UserName" value="@(Html.ViewData["UserName"])" />
                                <span class="text-error">@Html.VerificationMessage["UserName"]</span>
                            </div>
                        </div>
                        <div class="control-group ">
                            <label class="control-label">所在地:</label>
                            <div class="input-control text size6">
                                <input name="Location" type="text" id="Location" value="@(Html.ViewData["Location"])" style="width:130px;" oncontextmenu="return false" onkeydown="return false" />
                                &nbsp; <select id="province" style="width:90px;" class="select">
                                    <option value="载入中">载入中</option>
                                </select>
                                <select id="city" style="width:100px;">
                                    <option value="载入中">载入中</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">性别:<em style="color:Red;">*</em></label>
                            <div class="input-control">
                                <input type="radio" name="Sex" value="1" id="Sex_Nan" />男&nbsp;
                                <input type="radio" name="Sex" value="2" id="Sex_Nv" />女&nbsp;
                                <input type="radio" name="Sex" value="3" id="Sex_Bm" />保密
                                <span class="text-error">@Html.VerificationMessage["Sex"]</span>
                                <script type="text/javascript">
                                    var sexid=@(Html.ViewData["Sex"]);
                                    if(sexid==1){
                                        document.getElementById("Sex_Nan").checked=true;
                                    }
                                    else if(sexid==2){
                                        document.getElementById("Sex_Nv").checked=true;
                                    }
                                    else{
                                        document.getElementById("Sex_Bm").checked=true;
                                    }
                                </script>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">标签:</label>
                            <div class="input-control text size5">
                                <input type="Tags" value="@(Html.ViewData["Tags"])" id="Tags" name="Tags" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">签名:</label>
                            <div class="input-control textarea size5">
                                <textarea name="Signature">@(Html.ViewData["Signature"])</textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <input type="submit" class=" button primary" value="提 交" />
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        @Html.Action("", "footer")
    </div>
    <script src="/tools/area/jquery.city.select.js" type="text/javascript"></script>
    <script src="/tools/area/getArea.js" type="text/javascript"></script>
</body>
</html> 